package com.by.auto;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author 江俊俊
 * @version 1.0
 * @description
 * @date 2025/2/12 17:44
 * @since JDK1.8
 */

@ConfigurationProperties(prefix = "token")
public class TokenProperties {

    String secret="ajk;dghsjgakls;";//密钥
    long validTime=30*60*1000;//有效时间

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public long getValidTime() {
        return validTime;
    }

    public void setValidTime(long validTime) {
        this.validTime = validTime;
    }
}
